package com.jd.distribution.workserver.service;

import com.baomidou.mybatisplus.service.IService;
import com.jd.distribution.common.vo.UserVO;
import com.jd.distribution.workserver.model.entity.SysUser;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created by ZHONG
 * Date:  2018/10/16
 * Time: 20:04
 */
public interface UserService extends IService<SysUser> {
    /**
     * 通过用户名查询用户、角色信息
     *
     * @param usercode 用户名
     * @return UserVo
     */
    UserVO findUserByUsercode(String usercode);

    /**
     * 通过手机号查询用户、角色信息
     *
     * @param mobile 手机号
     * @return UserVo
     */
    UserVO findUserByMobile(String mobile);
}
